Add directional/charging skip toggles to Low, High and Battery alarms#692
Conversation
The low alarm can now stay silent while BG is climbing, firing only when the latest reading is flat or still falling. Off by default, so existing alarms are unaffected.
The high alarm can now stay silent while BG is falling (mirror of the low alarm's skip-if-rising). The phone-battery alarm can stay silent while the phone is charging, using the uploader's charging status from Nightscout. Both are off by default.
Test✅ successful test Battery Select skip when charging Low and High Alarms For the alarms - set persistent to 0 so they alert right away, set snooze to 0 minutes. ✅ alert at 80 |
marionbarker
left a comment
There was a problem hiding this comment.
Approve from code review and test
Adds three opt-in toggles that keep alarms quiet when the situation is already correcting itself. All are off by default, so existing alarms behave exactly as before.
For the BG alarms, direction is judged by the last two readings; the delta isn't configurable. The battery toggle relies on the
isChargingflag already present in the Nightscout devicestatus payload rather than guessing from battery-level history.